package org.neframework.webtest.util.web.session;

import javax.servlet.http.HttpServletRequest;

import org.neframework.webtest.model.t_fk_user;

public class SessionTools {

	public static String LOGIN_ADMIN = "LOGIN_ADMIN";

	public static void put(String key, Object val, HttpServletRequest req) {
		// TODO 设置session值
		req.getSession().setAttribute(key, val);
	}

	public static t_fk_user getCurrentLoginAdmin(HttpServletRequest req) {
		t_fk_user admin = (t_fk_user) req.getSession().getAttribute(LOGIN_ADMIN);
		return admin;
	}

}
